import { NgModule } from '@angular/core';
import {Routes, RouterModule} from "@angular/router";
import {HaggleComponent} from "./haggle.component";
import {HaggleListComponent} from "./haggle-list/haggle-list.component";



export const routes: Routes = [
  {
    path: '',
    component: HaggleComponent
  },
  {
    path: 'list', // type为1：我发起的 ， 2：我参与的 ;
    component: HaggleListComponent,
  },
  {
    path: ':haggleId',
    component: HaggleComponent,
  },

];


@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [RouterModule]
})
export class HaggleRoutingModule { }



